package iosr11.data;

public enum EventKind {
	LECTURE,					//1
	CONSULTATION,				//2
	ADDITIONAL_CONSULTATION,	//3
	LABORATORY,					//4
	EXAM;						//5
	
	static int returnInt(EventKind kind){
		if (kind == LECTURE) return 1;
		else if (kind == CONSULTATION) return 2;
		else if (kind == ADDITIONAL_CONSULTATION) return 3;
		else if (kind == LABORATORY) return 4;
		else if (kind == EXAM) return 5;
		else return 0;
		
	}
	
	static EventKind returnEventKind(int kind){
		if (kind == 2) return CONSULTATION;
		else if (kind == 3) return ADDITIONAL_CONSULTATION;
		else if (kind == 4) return LABORATORY;
		else if (kind == 5) return EXAM;
		else return LECTURE;
	}
}
